/* 
 * File:   ldLib.h
 * Author: Administrator
 *
 * Created on 2013?8?28?, ??10:11
 */

#ifndef LDLIB_H
#define	LDLIB_H

#ifdef	__cplusplus
extern "C" {
#endif




#ifdef	__cplusplus
}
#endif

void LD_shaping_AB_BA_Go(float thisdelay, int ITI, float waterlen, float delay2, int missstop, int sessstop);
void LD_auto_AB_BA_Go_AA_BB_Nogo_Ran_new(float thisdelay, int interti, int trialNumperSess, float waterlen, float delay2, int missstop, int sessstop);
void CD_Go_Nogo(float thisdelay, float interti, int trialNumperSess, float WaterLen, int missstop, int sessstop, float delay_before_reward);
void auto_AB_BA_Go_AA_BB_Nogo_Ran2(float thisdelay, float interti, float trialNumperSess, float WaterLen, float missstop, float sessstop, float delay_before_reward);
void ODNMS2(int FirstOdorIn, float FirOdorLen, float OdorDelayIn, int SecondOdorIn, float SecOdorLen, int ThirdOdorIn, float WaterLIn, float IntervalIn, float delay_before_reward);
void CD_Go(int OdorIn, float OdorLen, float thisdelay, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward);
void CD_Nogo(int OdorIn, float OdorLen, float thisdelay, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward);
void LD_ODNMS_Go(int FirstOdorIn, float FirOdorLen, float OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward);
void LD_ODNMS_Nogo(int FirstOdorIn, float FirOdorLen, float OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward);


void LD_ODNMS_new(int FirstOdorIn, float FirOdorLen, int OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward, int delay1, int delay2, int temptrial);
void LD_ODNMS_ITI(int FirstOdorIn, float FirOdorLen, int OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward, int delay1, int delay2, int temptrial);
void LD_ODNMS_att(int FirstOdorIn, float FirOdorLen, int OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward, int delay1, int delay2, int temptrial);
void LD_AB_BA_Go_laser_att(int thisdelay, int interti, int trialNumperSess, float WaterLen, int missstop, int sessstop, float delay_before_reward, int delay1, int delay2);
void LD_AB_BA_Go_AA_BB_Nogo_laser_acti(int thisdelay, int interti, int trialNumperSess, float WaterLen, int missstop, int sessstop, float delay_before_reward, int delay1, int delay2);
void LD_AB_BA_Go_laser(int thisdelay, int interti, int trialNumperSess, float WaterLen, int missstop, int sessstop, float delay_before_reward, int delay1, int delay2);
void LD_AB_BA_Go_AA_BB_Nogo_laser_ITI(int thisdelay, int interti, int trialNumperSess, float WaterLen, int missstop, int sessstop, float delay_before_reward, int delay1, int delay2);
void LD_ODNMS_acti(int FirstOdorIn, float FirOdorLen, int OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward, int delay1, int delay2, int temptrial);
void LD_ODNMS(int FirstOdorIn, float FirOdorLen, int OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward, int delay1, int delay2, int temptrial);


void pico(int duration_on, int duration_off); //20130830

 void FourOdor_DNMS(int O1, int O2, int O3, int O4, int thisdelay, int interti, int trialNumperSess);
 void ODNMS1(int FirstOdorIn, int FirOdorLen, int OdorDelayIn, int SecondOdorIn, int SecOdorLen, float WaterLIn, int IntervalIn, int prolong, int delay_before_reward) ;
 void DNMS_5delays(int D1, int D2, int D3, int D4, int D5,int ITI1,int ITI2,int ITI3, int ITI4, int ITI5);
 void Stimulate1(void) ;
 void Stimulate2(void) ;
 void Stimulate3(void) ;
 void Stimulate4(void) ;
 void FourOdor_shaping(int O1, int O2, int O3, int O4, int thisdelay, int interti, int trialNumperSess);
 void LD_ODNMS_Nogo_ONOFF(int temptrial, int FirstOdorIn, float FirOdorLen, float OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward) ;
 void LD_ODNMS_Go_ONOFF(int temptrial, int FirstOdorIn, float FirOdorLen, float OdorDelayIn, int SecondOdorIn, float SecOdorLen, float WaterLIn, int IntervalIn, int prolong, float delay_before_reward);
 void LD_auto_AB_BA_Go_AA_BB_Nogo_Ran_new_ONOFF(float thisdelay, int interti, int trialNumperSess, float waterlen, float delay2, int missstop, int sessstop); 
void LD_shaping_AB_BA_Go_ONOFF(float thisdelay, int ITI, float waterlen, float delay2, int missstop, int sessstop );

//extern unsigned int hit2, miss2 , falseAlarm2 , correctRejection2 , correctRatio2 ;
//extern unsigned int hit3, miss3 , falseAlarm3 , correctRejection3 , correctRatio3 ;

#endif	/* LDLIB_H */

